package enums;

import java.util.Random;
import java.util.function.Supplier;

public enum CartoonCharacter implements Supplier<CartoonCharacter> {
    SLAPPY, SPANKY, PUNCHY, SILLY, BOUNCY, NUTTY, BOB;

    private final Random rand = new Random(47);

    @Override public CartoonCharacter get() {
        return values()[rand.nextInt(values().length)];
    }
}
